|
|
@@ -262,9 +262,6 @@ def DJANGO_FILE_UPLOAD_CALLBACK_FUNC(request, file_path=None, file_url=None):
|
262
|
262
|
upload_file_req(file, file_path, bucket='tamron')
|
263
|
263
|
file_url = qiniu_file_url(file_path, bucket='tamron')
|
264
|
264
|
|
265
|
|
- if os.path.exists(file_path):
|
266
|
|
- os.remove(file_path)
|
267
|
|
-
|
268
|
265
|
return {
|
269
|
266
|
'width': width,
|
270
|
267
|
'height': height,
|
|
|
@@ -277,9 +274,6 @@ def DJANGO_FILE_UPLOAD_CALLBACK_FUNC(request, file_path=None, file_url=None):
|
277
|
274
|
upload_file_req(file, file_path, bucket='tamron')
|
278
|
275
|
file_url = qiniu_file_url(file_path, bucket='tamron')
|
279
|
276
|
|
280
|
|
- if os.path.exists(file_path):
|
281
|
|
- os.remove(file_path)
|
282
|
|
-
|
283
|
277
|
return {
|
284
|
278
|
'file_url': file_url,
|
285
|
279
|
}
|